<div class="popup_body">
	<div class="popup_head">
		<div class="popup_action">
			<div class="popup_action_link l7" id="popup_close"></div>
		</div>
	</div>	
	<div class="popup_content">	
		<?php foreach($videos as $key=>$video){ ?>	
			<div class="img">
				<a href="" onclick="return false;" class="add_attachment">
					<div class="one_image">
						<div class="image_x_wrap hidden"><div class="image_x"></div></div>
						<img src="<?php echo VideoPreview::getVideoPreview($video->video->code); ?>" width="180" height="107" border="0" alt="" />
						<div class="name"><?php echo CHtml::encode($video->name); ?></div>
					</div>
					<input type="hidden" name="videos[]" value="<?php echo $video->video_id; ?>" class="videos" />
				</a>
			</div>
		<?php } ?>
	</div>		
</div>